<template>
	<view class="container">
		<tab-bar :currentPage="0"></tab-bar>
		<view class="top-container"></view>
		<view class="main flex-center">
			<view class="search">
				<input type="text" class="input shadow" v-model="value">
				<u-icon name="search" class="icon"></u-icon>
				<button class="btn shadow">搜索</button>
			</view>
			
			<know-card></know-card>
			<know-card></know-card>
			<know-card></know-card>
			<know-card></know-card>
		</view>
	</view>
</template>

<script>
	import knowCard from "../../components/know-card.vue"
	export default {
		data() {
			return {
				value:""
			}
		},
		components:{
			knowCard
		}
	}
</script>

<style lang="scss">
.container {
	.top-container{
		height: 30vh;
		background-color: skyblue;
	}
	.main {
		padding: 30rpx;
		
		.search {
			position: relative;
			display: flex;
			.input{
				border-radius: 30rpx;
				width: 60vw;
				height: 100rpx;
				padding-left: 70rpx;
			}
			.btn {
				background-color: #fff;
				border: none;
				border-radius: 30rpx;
			}
			.icon {
				position: absolute;
				top: 50%;
				left: 30rpx;
				transform: translate(0,-50%);
			}
		}
	}
}
</style>